package org.study.springcloud.service1.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.study.springcloud.service1.api.vo.SimpleVo;

@FeignClient(value = "service2",fallback = SimpleServiceFallBack.class)
public interface Service2Feign {
	@RequestMapping("/req1")
	public String f1(@RequestParam("p1") String p1);
	@RequestMapping("/req2")
	public SimpleVo f2(@RequestBody SimpleVo simpleVo);
}
